<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>动画</title>
    <script src="../vue.global.js"></script>
    <style>
        .red{
            color:red;
        }
        .font-big{
            font-size: 50px;
        }
    </style>
</head>
<body>

<div id="App">

    <button v-on:click="show=!show">切换{{show}}</button>
    <p v-if="show">content {{show}}</p>
</div>


<script>


    const app = Vue.createApp({

        data(){
            return {
                show:true
            }
        }
    });


    app.mount("#App");


</script>
</body>
</html>